class Field extends egret.EventDispatcher{
	public player:Player
	/**前场卡片 */
	public front:BaseCard[]
	/**后场卡片 */
	public back:WeaponCard[]
	public constructor() {
		super()
		this.front = [null, null, null]
		this.back = [null, null, null]
	}

	public placeFront(card:BaseCard, p:0|1|2){
		const t = this
		if(t.front[p]){
			t.front[p].remove()
		}
		t.front[p] = card
	}

	public placeBack(card:WeaponCard, p:0|1|2){
		const t = this
		if(t.back[p]){
			t.back[p].remove()
		}
		t.back[p] = card
	}
}